
package com.jf.cloud.order.manager;

import com.jf.cloud.order.bo.mongo.MongoPurchaseOrderBO;
import ma.glasnost.orika.MapperFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

/**
 * 订单统计
 * @author zz
 * @date 2020/12/07
 */
@Component
public class MongoPurchaseOrderManager {
    private final Logger logger = LoggerFactory.getLogger(MongoOrderRefundManager.class);

    @Autowired
    private MongoTemplate mongoTemplate;
    @Autowired
    private MapperFacade mapperFacade;

    public void save(MongoPurchaseOrderBO mongoPurchaseOrderBO) {
        mongoTemplate.save(mongoPurchaseOrderBO);
    }

}
